package com.zmn.plat.dubbo.interfaces.msg;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.plat.dubbo.dto.msg.MsgDIO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(value = "消息模板服务", tags = {"消息模板"})
public interface MsgRemoteService {
    /**
     * 根据消息模板配置发送消息：可发钉钉，短信，站内信
     * 
     * @param msgDIO
     * @return
     */
    @ApiOperation(value = "根据消息模板配置发送消息", response = ResponseDTO.class, notes = "可发钉钉，短信，站内信", tags = {"发送消息"})
    ResponseDTO sendMsg(@NotNull(message = "入参不能为空") @Valid @ApiParam(value = "入参", required = true) MsgDIO msgDIO);
}
